Skip to content

Prettier! #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Feb 25, 2020
Merged

Conversation

miketheman
Copy link
Contributor

Prettier is now scoped to all *.js and *.md files - and is used in lint, ci:lint and behaves the same for the end user if they run npm run format.

I'm not sure I agree with the single-quote markdown style, so this is an opportunity to decide otherwise and place the single-quote configuration directive as part of a *.js override - I'm open to either.

The `parser` option exists to force prettier to conform to a particular
style. The docs recommend that this only be implemented in an `overrides`
section, to prevent parsing one file as another.
See https://prettier.io/docs/en/configuration.html#setting-the-parserdocsenoptionshtmlparser-option

Since the code is linted correctly without the override, and we want to
lint Markdown, remove this configuration.

Signed-off-by: Mike Fiedler <[email protected]>
Updates commands to catch when Markdown is malformed.

Refs: serverless#471 (review)

Signed-off-by: Mike Fiedler <[email protected]>
@bsamuel-ui
Copy link
Contributor

I'm not sure I agree with the single-quote markdown style, so this is an opportunity to decide

You did the work, you get to make the call.

@bsamuel-ui bsamuel-ui merged commit e118eff into serverless:master Feb 25, 2020
@miketheman miketheman deleted the miketheman/prettier-markdown branch February 25, 2020 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants